package com.tocean.demo.repository;

import com.tocean.demo.entity.questionbank.TestRelation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TestRlationRepository extends JpaRepository<TestRelation, Long> {

    TestRelation findByTestidAndQuestionid(Long tid, Long id);

    List<TestRelation> findAllByTestid(Long tid);
}
